﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DAL.Migrations
{
    public partial class ss : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Hoteinfor",
                columns: table => new
                {
                    HoteId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HoteAddress = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Hoteinfor", x => x.HoteId);
                });

            migrationBuilder.CreateTable(
                name: "Userinfor",
                columns: table => new
                {
                    UserId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HoteId = table.Column<int>(type: "int", nullable: false),
                    UserDian = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    UserPhone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    UserTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UserZuida = table.Column<int>(type: "int", nullable: false),
                    UserZhuang = table.Column<int>(type: "int", nullable: false),
                    UserTimes = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UserKaiye = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Userinfor", x => x.UserId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Hoteinfor");

            migrationBuilder.DropTable(
                name: "Userinfor");
        }
    }
}
